package reflect;

import java.lang.reflect.Constructor;

public class Test {
    public static void main(String[] args) throws Exception {
        Class<?> cls = Class.forName("reflect.Student");
        Constructor<?> constructor = cls.getConstructor(String.class, int.class,char.class);
        Object o = constructor.newInstance("张三", 18, '男');
        System.out.println(o);
    }
}
